import { createApp } from 'vue'
import pinia from './stores'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'element-plus/dist/index.css'
import '@/assets/icon/iconfont.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 样式全局使用
import 'vant/lib/index.css'
//全局共享css
import './style/public.scss'
import App from './App.vue'
import router from './router'
import { Tab, Tabs } from 'vant'
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(ElementPlus, {
  locale: zhCn
})
app.use(Tab)
app.use(Tabs)
app.use(pinia)
app.use(router)

app.mount('#app')
